import axios from '@/utils/request'
export const getArtilceList = (channelId, timestamp) => {
  return axios({
    url: '/v1_0/articles',
    params: {
      channel_id: channelId,
      timestamp
    }
  })
}
export function articleDisLike(target) {
  return axios({
    method: 'POST',
    url: '/v1_0/article/dislikes',
    data: {
      target
    }
  })
}
/**
 * 举报文章
 * @param {*} articleId 文章类型
 * @param {*} type 举报类型编号
 */
export const reportArticle = (articleId, type) => {
  return axios({
    method: 'POST',
    url: '/v1_0/article/reports',
    data: {
      target: articleId,
      type
    }
  })
}
